FROM lizhi1803001230/hadoop:v2.10.1_0

ARG hbase_uid=bigdata02

COPY hbase-2.3.6 /opt/hbase-2.3.6
COPY entrypoint.sh /opt/entrypoint.sh
COPY daemon.sh /opt/daemon.sh
RUN ln -s /opt/hbase-2.3.6 /opt/hbase &&  useradd -ms /bin/bash ${hbase_uid} && \
    chown ${hbase_uid}:${hbase_uid} -R /opt/hbase/ && \
    yum install -y snappy snappy-devel
ENV HBASE_HOME=/opt/hbase
ENV PATH=$HBASE_HOME/bin:$PATH


ENTRYPOINT [ "/opt/entrypoint.sh" ]

USER ${hbase_uid}
